package com.fast.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色信息表(Role)表实体类
 *
 * @author hjw
 * @since 2021-12-02 23:41:31
 */
@Data
@TableName("sys_role")
@ApiModel(value="Role",description="角色信息表实体类")
public class Role extends Model<Role> implements Serializable {

                        
    @TableId(type=IdType.ID_WORKER)
    @ApiModelProperty(name = "id", value = "角色ID")
    private Long id;
                        
    @ApiModelProperty(name = "name", value = "角色名称")
    private String name;
                        
    @ApiModelProperty(name = "roleKey", value = "角色权限字符串")
    private String roleKey;
                        
    @ApiModelProperty(name = "sort", value = "显示顺序")
    private Integer sort;
                        
    @ApiModelProperty(name = "dataScope", value = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）")
    private String dataScope;
                        
    @ApiModelProperty(name = "menuCheckStrictly", value = "菜单树选择项是否关联显示")
    private Integer menuCheckStrictly;
                        
    @ApiModelProperty(name = "deptCheckStrictly", value = "部门树选择项是否关联显示")
    private Integer deptCheckStrictly;
                        
    @ApiModelProperty(name = "status", value = "角色状态（0正常 1停用）")
    private String status;
                        
    @ApiModelProperty(name = "delFlag", value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
                        
    @ApiModelProperty(name = "createBy", value = "创建者",hidden=true)
    private String createBy;
                        
    @ApiModelProperty(name = "createTime", value = "创建时间",hidden=true)
    private LocalDateTime createTime;
                        
    @ApiModelProperty(name = "updateBy", value = "更新者",hidden=true)
    private String updateBy;
                        
    @ApiModelProperty(name = "updateTime", value = "更新时间",hidden=true)
    private LocalDateTime updateTime;
                        
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
    
    private static final long serialVersionUID = 561979254939629483L;
}